package acationtiktokcasemymongo

const (
	MatchTypeDefault  = 0 //默认模式
	MatchTypeCategory = 1 //组合模式
	MatchTypeMarry    = 2 //结婚模式
)

type ActionHouseMatchCases struct {
}

var ActionHouseMatchCasesObject ActionHouseMatchCases

func (e ActionHouseMatchCases) MatchType() []int {
	return []int{
		MatchTypeDefault,
		MatchTypeCategory,
		MatchTypeMarry,
	}
}

func (e ActionHouseMatchCases) MatchTypeMap() map[int]int {
	m := make(map[int]int)
	for _, s := range e.MatchType() {
		m[s] = s
	}
	return m
}

func (e ActionHouseMatchCases) MatchTypeString(tag int) string {
	switch tag {
	case MatchTypeDefault:
		return "对战模式" //对战模式 （默认模式）
	case MatchTypeCategory:
		return "休闲模式" //休闲模式（组合模式）
	case MatchTypeMarry:
		return "结婚模式" //结婚模式
	default:
		return "未知"
	}
}
